<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>安装程序</title>
<script type="text/javascript" src="./js/jquery.js"></script>
<link rel="stylesheet" href="./css/install.css">
<link rel="stylesheet" href="./css/multi-steps.css">
    <script>
        function testClick() {
            if ($('.yes').length != 6) {
                alert('您的配置或权限不符合要求');
            } else {
                location.href = './index.php?c=create';
            }
        }
    </script>
</head>
<body>
<div class="wrap">
  <div class="header">
      LAYSNS <?php echo VERSION;?> 安装向导
  </div>
<div class="blank10"></div>
<nav>
		<ol class="cd-multi-steps text-bottom count">
			<li class="visited"><a href="#0">使用协议</a></li>
			<li class="current" ><em>检查环境</em></li>
			<li><em>配置系统</em></li>
			<li><em>完成安装</em></li>
		</ol>
	</nav>
<section class="section">
    <div class="blank20"></div>

    <div class="server">
      <table width="100%" id="table" cellspacing="1">
        <tr>
          <td class="td1">环境检测</td>
          <td class="td1" width="25%">推荐配置</td>
          <td class="td1" width="25%">当前状态</td>
          <td class="td1" width="25%">是否可用</td>
        </tr>
        <tr>
          <td class="first">服务器环境</td>
          <td>Apache/2.4.23</td>
          <td><?php echo php_uname('s'); ?></td>
		  <td><font color="#46be8a">当前配置正确</font></td>
        </tr>
        <tr>
          <td class="first">PHP版本</td>
          <td>&gt;=7.2.5(支持php8)</td>
          <td><?php echo PHP_VERSION ?></td>
          <?php $php_version=explode('.', PHP_VERSION); ?>
          <td class="<?php if(($php_version['0']>=8) || ($php_version['0']>=7 && $php_version['1']>=2))echo 'yes'; ?>">
          <?php if (($php_version['0']>=8) || ($php_version['0']>=7 && $php_version['1']>=2)): ?> <font color="#46be8a">当前配置正确</font>
          <?php else: ?> <font color="red">当前配置错误</font>
          <?php endif ?></td>
        </tr>
		</table>
      <table width="100%" id="table" cellspacing="1">

        <tr style="text-align: center;font-size: 15px">
            <td colspan="4"  ><a target="_blank" href="https://bbs.laysns.com/thread/3059.html"> 点此查看其他注意事项以及操作手册</a>
            </td>
        </tr>

      </table>

      
    </div>
    <div class="bottom tac"> 
      <div class="blank20"></div>
      <center>
        <a href="./index.php?c=agreement" class="btn_b">上一步</a>
               <a href="./index.php?c=create"  class="btn_a">下一步</a>
              </center>
    </div>
  </section>
</div>
 <div class="blank20"></div>
<div class="footer"> Powered by  <a href="http://www.laysns.com" target="_blank">LAYSNS</a></div>
</body>
</html>